package com.wswy.wzcx.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by wangduheng26 on 2018/1/23.
 * wangduheng26@gmail.com
 */

public class GenreChild implements Parcelable {
    @SerializedName("id")
    public int id;
    @SerializedName("amount")
    public String content;
    @SerializedName("tagNames")
    public String title;
    @SerializedName("remarks")
    public String desc;
    @SerializedName("createTime")
    public long createTime;

    @SerializedName("expensesDate")
    public String expensesDate;

    @SerializedName("year")
    public int year;
    @SerializedName("month")
    public int month;
    @SerializedName("day")
    public int day;

    public int type;


    protected GenreChild(Parcel in) {
        id = in.readInt();
        content = in.readString();
        title = in.readString();
        desc = in.readString();
        createTime = in.readLong();
        type = in.readInt();
        expensesDate = in.readString();
    }

    public static final Creator<GenreChild> CREATOR = new Creator<GenreChild>() {
        @Override
        public GenreChild createFromParcel(Parcel in) {
            return new GenreChild(in);
        }

        @Override
        public GenreChild[] newArray(int size) {
            return new GenreChild[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(content);
        dest.writeString(title);
        dest.writeString(desc);
        dest.writeLong(createTime);
        dest.writeInt(type);
        dest.writeString(expensesDate);
    }
}
